<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>护工列表 - 邦伴用户端</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
  <style>
    :root {
      --primary: #ff7e2d;
      --primary-light: #fff3ea;
      --border: #f0f0f0;
      --text-main: #222;
      --text-sub: #888;
    }
    
    body {
      font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
      background-color: #f8f8f8;
      color: var(--text-main);
    }
    
    .app-container {
      max-width: 480px;
      margin: 0 auto;
      background: #fff;
      min-height: 100vh;
      position: relative;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    }
    
    .primary-color {
      color: var(--primary);
    }
    
    .primary-bg {
      background-color: var(--primary);
    }
    
    .primary-light-bg {
      background-color: var(--primary-light);
    }
    
    .search-box {
      background-color: var(--primary-light);
      border-radius: 20px;
    }
    
    .worker-card {
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    
    .worker-avatar {
      background-color: #ffe2c6;
      color: var(--primary);
    }
    
    .tag {
      background-color: var(--primary-light);
      color: var(--primary);
      border-radius: 12px;
      padding: 2px 8px;
      font-size: 12px;
    }
    
    .filter-btn.active {
      color: var(--primary);
      border-color: var(--primary);
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 顶部导航栏 -->
    <div class="sticky top-0 z-10 bg-white border-b border-gray-100 px-4 py-3 flex items-center">
      <a href="index.html" class="mr-2">
        <i class="fas fa-arrow-left text-lg"></i>
      </a>
      <h1 class="text-lg font-medium flex-1 text-center">护工列表</h1>
      <button class="ml-2" id="filterBtn">
        <i class="fas fa-filter text-lg primary-color"></i>
      </button>
    </div>
    
    <!-- 搜索栏 -->
    <div class="px-4 py-3 bg-white border-b border-gray-100">
      <div class="search-box flex items-center px-4 py-2">
        <i class="fas fa-search text-gray-400 mr-2"></i>
        <input type="text" placeholder="搜索护工姓名/技能" class="bg-transparent w-full focus:outline-none text-sm">
      </div>
    </div>
    
    <!-- 筛选标签 -->
    <div class="flex overflow-x-auto whitespace-nowrap px-4 py-3 bg-white border-b border-gray-100" style="scrollbar-width: none;">
      <button class="filter-btn px-3 py-1 border border-gray-200 rounded-full text-sm mr-2 active">全部</button>
      <button class="filter-btn px-3 py-1 border border-gray-200 rounded-full text-sm mr-2">评分最高</button>
      <button class="filter-btn px-3 py-1 border border-gray-200 rounded-full text-sm mr-2">经验丰富</button>
      <button class="filter-btn px-3 py-1 border border-gray-200 rounded-full text-sm mr-2">价格最低</button>
      <button class="filter-btn px-3 py-1 border border-gray-200 rounded-full text-sm mr-2">医院陪护</button>
      <button class="filter-btn px-3 py-1 border border-gray-200 rounded-full text-sm mr-2">居家照护</button>
    </div>
    
    <!-- 护工列表 -->
    <div class="p-4">
      <!-- 护工卡片 -->
      <a href="worker_detail.html" class="worker-card bg-white p-4 mb-4 block">
        <div class="flex">
          <!-- 头像 -->
          <div class="worker-avatar w-16 h-16 rounded-full flex items-center justify-center mr-3 text-xl font-bold">
            张
          </div>
          
          <!-- 信息 -->
          <div class="flex-1">
            <div class="flex justify-between items-center">
              <h3 class="font-medium">张阿姨</h3>
              <span class="primary-color font-medium">¥398/天</span>
            </div>
            <div class="text-sm text-gray-500 mt-1">48岁 | 湖南人 | 5年经验</div>
            <div class="flex items-center mt-1">
              <span class="text-sm primary-color">⭐ 4.9分</span>
              <span class="mx-2 text-gray-300">|</span>
              <span class="text-sm text-gray-500">好评率98%</span>
            </div>
            <div class="flex flex-wrap mt-2">
              <span class="tag mr-1 mb-1">医院陪护</span>
              <span class="tag mr-1 mb-1">血压监测</span>
              <span class="tag mr-1 mb-1">注射护理</span>
            </div>
          </div>
        </div>
      </a>
      
      <a href="worker_detail.html" class="worker-card bg-white p-4 mb-4 block">
        <div class="flex">
          <div class="worker-avatar w-16 h-16 rounded-full flex items-center justify-center mr-3 text-xl font-bold">
            李
          </div>
          <div class="flex-1">
            <div class="flex justify-between items-center">
              <h3 class="font-medium">李大姐</h3>
              <span class="primary-color font-medium">¥378/天</span>
            </div>
            <div class="text-sm text-gray-500 mt-1">42岁 | 河南人 | 3年经验</div>
            <div class="flex items-center mt-1">
              <span class="text-sm primary-color">⭐ 4.8分</span>
              <span class="mx-2 text-gray-300">|</span>
              <span class="text-sm text-gray-500">好评率95%</span>
            </div>
            <div class="flex flex-wrap mt-2">
              <span class="tag mr-1 mb-1">医院陪护</span>
              <span class="tag mr-1 mb-1">生活照料</span>
              <span class="tag mr-1 mb-1">饮食照料</span>
            </div>
          </div>
        </div>
      </a>
      
      <a href="worker_detail.html" class="worker-card bg-white p-4 mb-4 block">
        <div class="flex">
          <div class="worker-avatar w-16 h-16 rounded-full flex items-center justify-center mr-3 text-xl font-bold">
            王
          </div>
          <div class="flex-1">
            <div class="flex justify-between items-center">
              <h3 class="font-medium">王阿姨</h3>
              <span class="primary-color font-medium">¥420/天</span>
            </div>
            <div class="text-sm text-gray-500 mt-1">52岁 | 四川人 | 8年经验</div>
            <div class="flex items-center mt-1">
              <span class="text-sm primary-color">⭐ 4.9分</span>
              <span class="mx-2 text-gray-300">|</span>
              <span class="text-sm text-gray-500">好评率99%</span>
            </div>
            <div class="flex flex-wrap mt-2">
              <span class="tag mr-1 mb-1">医院陪护</span>
              <span class="tag mr-1 mb-1">血压监测</span>
              <span class="tag mr-1 mb-1">康复训练</span>
            </div>
          </div>
        </div>
      </a>
      
      <a href="worker_detail.html" class="worker-card bg-white p-4 mb-4 block">
        <div class="flex">
          <div class="worker-avatar w-16 h-16 rounded-full flex items-center justify-center mr-3 text-xl font-bold">
            赵
          </div>
          <div class="flex-1">
            <div class="flex justify-between items-center">
              <h3 class="font-medium">赵阿姨</h3>
              <span class="primary-color font-medium">¥388/天</span>
            </div>
            <div class="text-sm text-gray-500 mt-1">45岁 | 安徽人 | 4年经验</div>
            <div class="flex items-center mt-1">
              <span class="text-sm primary-color">⭐ 4.7分</span>
              <span class="mx-2 text-gray-300">|</span>
              <span class="text-sm text-gray-500">好评率94%</span>
            </div>
            <div class="flex flex-wrap mt-2">
              <span class="tag mr-1 mb-1">生活照料</span>
              <span class="tag mr-1 mb-1">饮食照料</span>
              <span class="tag mr-1 mb-1">居家照护</span>
            </div>
          </div>
        </div>
      </a>
      
      <a href="worker_detail.html" class="worker-card bg-white p-4 mb-4 block">
        <div class="flex">
          <div class="worker-avatar w-16 h-16 rounded-full flex items-center justify-center mr-3 text-xl font-bold">
            陈
          </div>
          <div class="flex-1">
            <div class="flex justify-between items-center">
              <h3 class="font-medium">陈阿姨</h3>
              <span class="primary-color font-medium">¥410/天</span>
            </div>
            <div class="text-sm text-gray-500 mt-1">50岁 | 江苏人 | 7年经验</div>
            <div class="flex items-center mt-1">
              <span class="text-sm primary-color">⭐ 4.8分</span>
              <span class="mx-2 text-gray-300">|</span>
              <span class="text-sm text-gray-500">好评率97%</span>
            </div>
            <div class="flex flex-wrap mt-2">
              <span class="tag mr-1 mb-1">血压监测</span>
              <span class="tag mr-1 mb-1">康复训练</span>
              <span class="tag mr-1 mb-1">医院陪护</span>
            </div>
          </div>
        </div>
      </a>
    </div>
  </div>

  <!-- 筛选弹窗 (默认隐藏) -->
  <div class="fixed inset-0 bg-black bg-opacity-50 z-20 hidden" id="filterModal">
    <div class="absolute bottom-0 left-0 right-0 bg-white rounded-t-xl" style="max-width: 480px; margin: 0 auto;">
      <div class="p-4 border-b border-gray-100">
        <div class="flex justify-between items-center">
          <h3 class="font-medium">筛选条件</h3>
          <button class="text-gray-400" onclick="document.getElementById('filterModal').classList.add('hidden')">
            <i class="fas fa-times"></i>
          </button>
        </div>
      </div>
      
      <div class="p-4">
        <!-- 年龄筛选 -->
        <div class="mb-4">
          <h4 class="font-medium mb-2">年龄范围</h4>
          <div class="grid grid-cols-4 gap-2">
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">不限</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">40岁以下</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">40-50岁</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">50岁以上</button>
          </div>
        </div>
        
        <!-- 工作经验 -->
        <div class="mb-4">
          <h4 class="font-medium mb-2">工作经验</h4>
          <div class="grid grid-cols-4 gap-2">
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">不限</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">1-3年</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">3-5年</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">5年以上</button>
          </div>
        </div>
        
        <!-- 服务类型 -->
        <div class="mb-4">
          <h4 class="font-medium mb-2">服务类型</h4>
          <div class="grid grid-cols-3 gap-2">
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">不限</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">医院陪护</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">居家照护</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">母婴服务</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">康复训练</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">生活照料</button>
          </div>
        </div>
        
        <!-- 评分要求 -->
        <div class="mb-4">
          <h4 class="font-medium mb-2">最低评分</h4>
          <div class="grid grid-cols-5 gap-2">
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">不限</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">4.5分以上</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">4.7分以上</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">4.8分以上</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">4.9分以上</button>
          </div>
        </div>
        
        <!-- 价格范围 -->
        <div class="mb-6">
          <h4 class="font-medium mb-2">价格范围</h4>
          <div class="grid grid-cols-3 gap-2">
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">不限</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">300元以下/天</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">300-400元/天</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">400-500元/天</button>
            <button class="px-3 py-2 border border-gray-200 rounded-md text-sm">500元以上/天</button>
          </div>
        </div>
        
        <!-- 按钮 -->
        <div class="flex space-x-4">
          <button class="flex-1 py-3 border border-gray-200 rounded-lg text-base">重置</button>
          <button class="flex-1 py-3 primary-bg text-white rounded-lg text-base">确定</button>
        </div>
      </div>
    </div>
  </div>
  
  <script>
    // 简单的筛选交互
    document.addEventListener('DOMContentLoaded', function() {
      // 筛选按钮激活状态
      const filterBtns = document.querySelectorAll('.filter-btn');
      filterBtns.forEach(btn => {
        btn.addEventListener('click', function() {
          filterBtns.forEach(b => b.classList.remove('active'));
          this.classList.add('active');
        });
      });
      
      // 打开筛选弹窗
      document.getElementById('filterBtn').addEventListener('click', function() {
        document.getElementById('filterModal').classList.remove('hidden');
      });
    });
  </script>
</body>
</html> 